package player

import (
	"GameServer/Game/lib"
	"GameServer/Game/rank"
	"GameServer/Game/sp"
)

func (p *Player) RankUnionRequest(req *sp.RankUnionRequest) (res *sp.RankUnionResponse) {
	res = &sp.RankUnionResponse{
		List: lib.FormatUnionRankSps(rank.GetUnionRank()),
	}
	return
}

func (p *Player) RankUserRequest(req *sp.RankUserRequest) (res *sp.RankUserResponse) {
	res = &sp.RankUserResponse{
		List: lib.FormatUserRankSps(rank.GetUserRank()),
	}
	return
}
